package com.dtagri.fjwlw.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * TjEquipment entity. @author MyEclipse Persistence Tools
 */

public class TjEquipment implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer equipId;
	private String equipName;
	private Integer equipType;
	private String model;
	private String spec;
	private String power;
	private String voltage;
	private String unit;
	private int sensorType;
	private int format;
	private String createTime;
	private String lastTime;
	private String offLineTime;
	private String equipAlias;//别名
	public String getEquipAlias() {
		return equipAlias;
	}

	public void setEquipAlias(String equipAlias) {
		this.equipAlias = equipAlias;
	}

	private Integer switch_;
	private Integer ceId;
	private String nvrid;
	private Integer sschanelnum;
	private List<SmallArea> smallAreas = new ArrayList<SmallArea>();

	// Constructors

	/** default constructor */
	public TjEquipment() {
	}

	/** full constructor */
	public TjEquipment(String equipName, Integer equipType, String model,
			String spec, String power, String voltage, String unit,
			int sensorType, int format, String createTime, String lastTime,
			String offLineTime,String  equipAlias) {
		this.equipName = equipName;
		this.equipType = equipType;
		this.model = model;
		this.spec = spec;
		this.power = power;
		this.voltage = voltage;
		this.unit = unit;
		this.sensorType = sensorType;
		this.format = format;
		this.createTime = createTime;
		this.lastTime = lastTime;
		this.offLineTime = offLineTime;
		this.equipAlias=equipAlias;
	}

	// Property accessors

	public List<SmallArea> getSmallAreas() {
		return smallAreas;
	}

	public void setSmallAreas(List<SmallArea> smallAreas) {
		this.smallAreas = smallAreas;
	}

	public String getNvrid() {
		return nvrid;
	}

	public void setNvrid(String nvrid) {
		this.nvrid = nvrid;
	}

	public Integer getSschanelnum() {
		return sschanelnum;
	}

	public void setSschanelnum(Integer sschanelnum) {
		this.sschanelnum = sschanelnum;
	}

	public Integer getCeId() {
		return ceId;
	}

	public void setCeId(Integer ceId) {
		this.ceId = ceId;
	}

	public Integer getSwitch_() {
		return switch_;
	}

	public void setSwitch_(Integer switch_) {
		this.switch_ = switch_;
	}

	public Integer getEquipId() {
		return this.equipId;
	}

	public void setEquipId(Integer equipId) {
		this.equipId = equipId;
	}

	public String getEquipName() {
		return this.equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public Integer getEquipType() {
		return this.equipType;
	}

	public void setEquipType(Integer equipType) {
		this.equipType = equipType;
	}

	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getSpec() {
		return this.spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getPower() {
		return this.power;
	}

	public void setPower(String power) {
		this.power = power;
	}

	public String getVoltage() {
		return this.voltage;
	}

	public void setVoltage(String voltage) {
		this.voltage = voltage;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public int getSensorType() {
		return sensorType;
	}

	public void setSensorType(int sensorType) {
		this.sensorType = sensorType;
	}

	public int getFormat() {
		return format;
	}

	public void setFormat(int format) {
		this.format = format;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}

	public String getOffLineTime() {
		return offLineTime;
	}

	public void setOffLineTime(String offLineTime) {
		this.offLineTime = offLineTime;
	}

	@Override
	public boolean equals(Object o) {
		return this.equipName == ((TjEquipment) o).equipName;
	}

}